package cn.whitecao.contentcenter;

import cn.whitecao.contentcenter.hello.EnableHelloWorld;
import cn.whitecao.contentcenter.rocketmq.MySource;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.messaging.Source;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

@SpringBootApplication
@ComponentScan("cn.whitecao")
@MapperScan("cn.whitecao.contentcenter.dao")
@EnableFeignClients
@EnableHelloWorld
@EnableAsync
@EnableBinding({Source.class, MySource.class})
public class ContentCenterApplication {

    public static void main(String[] args) {
        SpringApplication.run(ContentCenterApplication.class, args);
    }

}
